package javat.lang;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class LongTest {

    @Test
    public void testEquals() {

        Long one = null;
        Long two = null;
        assertTrue(one == two);
        one = new Long(2);
        two = new Long(2);
        // Wrapper type use == is means equal memory address.
        assertFalse(one == two);
        assertTrue(one.equals(two));
    }
}
